/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Application;
import Application.MainForm.MainForm;
/**
 * Fo osztaly, ket feladata a program logojanak megjelenitese, illetve a
 * View es a Controller peldanyositasa, futtatasa.
 * @author nothingam
 */
public class Main {

    /**
     * Egy ASCII art-os logo mindig kihagyhatatlan egy konzolos programbol,
     * ezt a nemes feladatot latja el a fuggveny.
     */
    public static void csicsa(){
        System.out.println(
                "\n"+
"                  _____ _____ _____ _____ _______       _      \n"+
"                 |  __ \\_   _/ ____|_   _|__   __|/\\   | |     \n"+
"                 | |  | || || |  __  | |    | |  /  \\  | |     \n"+
"                 | |  | || || | |_ | | |    | | / /\\ \\ | |     \n"+
"                 | |__| || || |__| |_| |_   | |/ ____ \\| |____ \n"+
"                 |_____/_____\\_____|_____|  |_/_/    \\_\\______|\n"+
"           _____ _____ __  __ _    _ _            _______ ____  _____  \n"+
"          / ____|_   _|  \\/  | |  | | |        /\\|__   __/ __ \\|  __ \n"+
"         | (___   | | | \\  / | |  | | |       /  \\  | | | |  | | |__) |\n"+
"          \\___ \\  | | | |\\/| | |  | | |      / /\\ \\ | | | |  | |  _  / \n"+
"          ____) |_| |_| |  | | |__| | |____ / ____ \\| | | |__| | | \\ \\ \n"+
"         |_____/|_____|_|  |_|\\____/|______/_/    \\_\\_|  \\____/|_|  \\_\\ \n"+
"                                            ___      ___                   \n"+
"              ___      __      ___        //   ) ) //   ) ) /_  / /_  /    \n"+
"            //   ) ) //  ) ) //   ) )      ___/ / //   / /   / /   / /     \n"+
"           //___/ / //      //   / /     / ____/ //   / /   / /   / /      \n"+
"          //       //      ((___/ /     / /____ ((___/ /   / /   / /      \n"+
"\n"+
"                            ULTIMA PRIME EDITION                            "+
"\n"+
"\n");
    }
    

    public static void main(String[] args) {
        if(args.length==1 && args[0].equals("graphical")){
            MainForm mf=new MainForm();
        }else{
            TextBasedController cntrl=new TextBasedController();
            if (args.length<3){
                csicsa();
                cntrl.run();
            }else{
                cntrl.run(args[1],args[2]);
            }
        }
    }

}
